package com.gitee.mrj.aiboot.core.sf.generators;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ObjectNode;

public class UIForm {

    @JsonIgnore
    private transient ObjectMapper mapper;
    @JsonIgnore
    private transient int level;
    private ObjectNode schema;
    private ObjectNode ui;

    public UIForm(ObjectMapper mapper, ObjectNode schema, ObjectNode ui, int level) {
        this.mapper = mapper;
        this.schema = schema;
        this.ui = ui;
        this.level = level;
    }

    public ObjectMapper getMapper() {
        return mapper;
    }

    public void setMapper(ObjectMapper mapper) {
        this.mapper = mapper;
    }

    public ObjectNode getSchema() {
        return schema;
    }

    public void setSchema(ObjectNode schema) {
        this.schema = schema;
    }

    public ObjectNode getUi() {
        return ui;
    }

    public void setUi(ObjectNode ui) {
        this.ui = ui;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }
}
